<template>
  <div>
    <h2>Children1</h2>
    <br>
    <div>{{msg}}</div>
  </div>
</template>
<script>
export default{
  data(){
    return {
      msg:''
    }
  },
  created(){
    this.$EventBus.$on('foo',msg => {
      this.msg = msg
    })
  }
}
</script>
<style lang="scss" scoped>

</style>
